Here's an example of one of the default key replacements
#+BEGIN_SRC emacs-lisp
-("<\\(\\(C-\\|M-\\)*.+\\)>" . "\\1")
+("<\\([[:alnum:]-]+\\)>" . "\\1")
#+END_SRC
The =car= takes a string which may use emacs regexp and the =cdr= takes a string
:type 'integer)
(defcustom which-key-key-replacement-alist
- '(("<\\(\\(C-\\|M-\\)*.+\\)>" . "\\1") ("left" . "←") ("right" . "→"))
+ '(("<\\([[:alnum:]-]+\\)>" . "\\1") ("left" . "←") ("right" . "→"))
"The strings in the car of each cons are replaced with the
strings in the cdr for each key. Elisp regexp can be used as
in the first example."